import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: '',
        component: () =>
            import ('../views/App.vue'),
        children: [{
            path: '',
            component: () =>
                import ('../views/main.vue')
        }, {
            path: 'bumenList',
            name: 'bumenList',
            component: () =>
                import ('../views/bumen/bumenList.vue')
        }, {
            path: 'userList',
            name: 'userList',
            component: () =>
                import ('../views/user/userList.vue')
        }, {
            path: 'guestList',
            name: 'guestList',
            component: () =>
                import ('../views/guest/guestList.vue')
        }, {
            path: 'subjectList',
            name: 'subjectList',
            component: () =>
                import ('../views/subject/subjectList.vue')
        }, {
            path: 'goodsList',
            name: 'goodsList',
            component: () =>
                import ('../views/goods/goodsList.vue')
        }, {
            path: 'cardList',
            name: 'cardList',
            component: () =>
                import ('../views/card/cardList.vue')
        }, {
            path: 'openCardList',
            name: 'openCardList',
            component: () =>
                import ('../views/openCard/openCardList.vue')
        }, {
            path: 'orderList',
            name: 'orderList',
            component: () =>
                import ('../views/order/orderList.vue')
        }, {
            path: 'rechargeList',
            name: 'rechargeList',
            component: () =>
                import ('../views/recharge/rechargeList.vue')
        }, {
            path: 'debtList',
            name: 'debtList',
            component: () =>
                import ('../views/debt/debtList.vue')
        }, {
            path: 'backCardList',
            name: 'backCardList',
            component: () =>
                import ('../views/backcard/backCardList.vue')
        }, {
            path: 'accountList',
            name: 'accountList',
            component: () =>
                import ('../views/account/accountList.vue')
        }, {
            path: 'checkList',
            name: 'checkList',
            component: () =>
                import ('../views/check/checkList.vue')
        }, {
            path: 'backCheckList',
            name: 'backCheckList',
            component: () =>
                import ('../views/check/backCheckList.vue')
        }, {
            path: 'userPayList',
            name: 'userPayList',
            component: () =>
                import ('../views/userPay/userPayList.vue')
        }, {
            path: 'costList',
            name: 'costList',
            component: () =>
                import ('../views/cost/costList.vue')
        }, {
            path: 'moneyList',
            name: 'moneyList',
            component: () =>
                import ('../views/money/moneyList.vue')
        }, {
            path: 'featList',
            name: 'featList',
            component: () =>
                import ('../views/feat/featList.vue')
        }, {
            path: 'stockList',
            name: 'stockList',
            component: () =>
                import ('../views/stock/stockList.vue')
        }, {
            path: 'pickList',
            name: 'pickList',
            component: () =>
                import ('../views/pick/pickList.vue')
        }, {
            path: 'stockLog',
            name: 'stockLog',
            component: () =>
                import ('../views/stock/stockLog.vue')
        }, {
            path: 'permissionLevel',
            name: 'permissionLevel',
            component: () =>
                import ('../views/rule/permissionLevel.vue')
        }, {
            path: 'adminRule',
            name: 'adminRule',
            component: () =>
                import ('../views/rule/adminRule.vue')
        }, {
            path: 'erWeiMa',
            name: 'erWeiMa',
            component: () =>
                import ('../views/base/erWeiMa.vue')
        }, {
            path: 'factoryList',
            name: 'factoryList',
            component: () =>
                import ('../views/factory/factoryList.vue')
        }, {
            path: 'brandList',
            name: 'brandList',
            component: () =>
                import ('../views/brand/brandList.vue')
        }, {
            path: 'shopGoodsList',
            name: 'shopGoodsList',
            component: () =>
                import ('../views/goods/shopGoodsList.vue')
        }, {
            path: 'otherShopFeat',
            name: 'otherShopFeat',
            component: () =>
                import ('../views/feat/otherShopFeat.vue')
        }]
    }, {
        path: '/addUser',
        name: 'addUser',
        component: () =>
            import ('../views/user/addUser.vue')
    }, {
        path: '/addGuest',
        name: 'addGuest',
        component: () =>
            import ('../views/guest/addGuest.vue')
    }, {
        path: '/editSubject',
        name: 'editSubject',
        component: () =>
            import ('../views/subject/editSubject.vue')
    }, {
        path: '/editGoods',
        name: 'editGoods',
        component: () =>
            import ('../views/goods/editGoods.vue')
    }, {
        path: '/cardInfo',
        name: 'cardInfo',
        component: () =>
            import ('../views/card/cardInfo.vue')
    }, {
        path: '/addAccount',
        name: 'addAccount',
        component: () =>
            import ('../views/account/addAccount.vue')
    }, {
        path: '/addCost',
        name: 'addCost',
        component: () =>
            import ('../views/cost/addCost.vue')
    }, {
        path: '/addRule',
        name: 'addRule',
        component: () =>
            import ('../views/rule/addRule.vue')
    }, {
        path: '/addAdmin',
        name: 'addAdmin',
        component: () =>
            import ('../views/rule/addAdmin.vue')
    }, {
        path: '/editAdmin',
        name: 'editAdmin',
        component: () =>
            import ('../views/admin/editAdmin.vue')
    }, {
        path: '/changePassword',
        name: 'changePassword',
        component: () =>
            import ('../views/admin/changePassword.vue')
    }, {
        path: '/addFactory',
        name: 'addFactory',
        component: () =>
            import ('../views/factory/addFactory.vue')
    }, {
        path: '/addBrand',
        name: 'addBrand',
        component: () =>
            import ('../views/brand/addBrand.vue')
    }, {
        path: '/openFactoryList',
        name: 'openFactoryList',
        component: () =>
            import ('../views/factory/openFactoryList.vue')
    }, {
        path: '/openAddShopGoods',
        name: 'openAddShopGoods',
        component: () =>
            import ('../views/goods/openAddShopGoods.vue')
    }, {
        path: '/openGoodsCategoryList',
        name: 'openGoodsCategoryList',
        component: () =>
            import ('../views/goods/goodsCategoryList.vue')
    }, {
        path: '/openBrandList',
        name: 'openBrandList',
        component: () =>
            import ('../views/goods/openBrandList.vue')
    }, {
        path: '/guestDetail',
        name: 'guestDetail',
        component: () =>
            import ('../views/guest/guestDetail.vue')
    }, {
        path: '/allotGuest',
        name: 'allotGuest',
        component: () =>
            import ('../views/guest/allotGuest.vue')
    }, {
        path: '/editGuestInitial',
        name: 'editGuestInitial',
        component: () =>
            import ('../views/guest/editGuestInitial.vue')
    }, {
        path: '/pullSubject',
        name: 'pullSubject',
        component: () =>
            import ('../views/subject/pullSubject.vue')
    }, {
        path: '/pullGoods',
        name: 'pullGoods',
        component: () =>
            import ('../views/goods/pullGoods.vue')
    }, {
        path: '/addCard',
        name: 'addCard',
        component: () =>
            import ('../views/card/addCard.vue')
    }, {
        path: '/selectSubject',
        name: 'selectSubject',
        component: () =>
            import ('../views/popup/selectSubject.vue')
    }, {
        path: '/addOpenCard',
        name: 'addOpenCard',
        component: () =>
            import ('../views/opencard/addOpenCard.vue')
    }, {
        path: '/selectOpenCardRowType',
        name: 'selectOpenCardRowType',
        component: () =>
            import ('../views/popup/selectOpenCardRowType.vue')
    }, {
        path: '/goodsPopup',
        name: 'goodsPopup',
        component: () =>
            import ('../views/popup/goodsPopup.vue')
    }, {
        path: '/subjectPopup',
        name: 'subjectPopup',
        component: () =>
            import ('../views/popup/subjectPopup.vue')
    }, {
        path: '/cardsPopup',
        name: 'cardsPopup',
        component: () =>
            import ('../views/popup/cardsPopup.vue')
    }, {
        path: '/accountPopup',
        name: 'accountPopup',
        component: () =>
            import ('../views/popup/accountPopup.vue')
    }, {
        path: '/userPopup',
        name: 'userPopup',
        component: () =>
            import ('../views/popup/userPopup.vue')
    }, {
        path: '/selectAppUser',
        name: 'selectAppUser',
        component: () =>
            import ('../views/popup/selectAppUser.vue')
    }, {
        path: '/openOrder',
        name: 'openOrder',
        component: () =>
            import ('../views/order/openOrder.vue')
    }, {
        path: '/rechargeOrder',
        name: 'rechargeOrder',
        component: () =>
            import ('../views/recharge/rechargeOrder.vue')
    }, {
        path: '/backCard',
        name: 'backCard',
        component: () =>
            import ('../views/backcard/backCard.vue')
    }, {
        path: '/selectGuestCard',
        name: 'selectGuestCard',
        component: () =>
            import ('../views/backcard/selectGuestCard.vue')
    }, {
        path: '/checkBackCard',
        name: 'checkBackCard',
        component: () =>
            import ('../views/backcard/checkBackCard.vue')
    }, {
        path: '/backCardInfo',
        name: 'backCardInfo',
        component: () =>
            import ('../views/backcard/backCardInfo.vue')
    }, {
        path: '/backAccount',
        name: 'backAccount',
        component: () =>
            import ('../views/backcard/backAccount.vue')
    }, {
        path: '/accountInfo',
        name: 'accountInfo',
        component: () =>
            import ('../views/account/accountInfo.vue')
    }, {
        path: '/userSalary',
        name: 'userSalary',
        component: () =>
            import ('../views/userPay/userSalary.vue')
    }, {
        path: '/costType',
        name: 'costType',
        component: () =>
            import ('../views/cost/costType.vue')
    }, {
        path: '/moneyInfo',
        name: 'moneyInfo',
        component: () =>
            import ('../views/money/moneyInfo.vue')
    }, {
        path: '/editGrade',
        name: 'editGrade',
        component: () =>
            import ('../views/rule/editGrade.vue')
    }, {
        path: '/selectGrade',
        name: 'selectGrade',
        component: () =>
            import ('../views/rule/selectGrade.vue')
    }, {
        path: '/addPickOrder',
        name: 'addPickOrder',
        component: () =>
            import ('../views/pick/addPickOrder.vue')
    }, {
        path: '/selectStaff',
        name: 'selectStaff',
        component: () =>
            import ('../views/popup/selectStaff.vue')
    }, {
        path: '/selectGoods',
        name: 'selectGoods',
        component: () =>
            import ('../views/popup/selectGoods.vue')
    }, {
        path: '/pickOrderInfo',
        name: 'pickOrderInfo',
        component: () =>
            import ('../views/pick/pickOrderInfo.vue')
    }, {
        path: '/addStockOrder',
        name: 'addStockOrder',
        component: () =>
            import ('../views/stock/addStockOrder.vue')
    }, {
        path: '/stockOrderInfo',
        name: 'stockOrderInfo',
        component: () =>
            import ('../views/stock/stockOrderInfo.vue')
    }, {
        path: '/selectDepartment',
        name: 'selectDepartment',
        component: () =>
            import ('../views/user/selectDepartment.vue')
    }, {
        path: '/guestSubjectPopup',
        name: 'guestSubjectPopup',
        component: () =>
            import ('../views/popup/guestSubjectPopup.vue')
    }, {
        path: '/guestStorePopup',
        name: 'guestStorePopup',
        component: () =>
            import ('../views/popup/guestStorePopup.vue')
    }, {
        path: '/backGround',
        name: 'backGround',
        component: () =>
            import ('../views/backGround.vue')
    }]
})